package com.poc.train.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.bstek.dorado.annotation.PropertyDef;

/**
 * 岗位维护
 * 
 * @author Andy
 *
 */
@Table(name = "POC_POSITION")
@Entity
public class PocPosition {

	@Id
	@PropertyDef(label = "岗位ID")
	@Column(name = "id", length = 38)
	private String id;

	@PropertyDef(label = "岗位名称")
	@Column(name = "name", length = 50)
	private String name;

	@PropertyDef(label = "岗位说明")
	@Column(name = "DESC_", length = 500)
	private String desc;

	@PropertyDef(label = "是否被禁用")
	@Column(name = "DISABLED")
	private boolean disabled = false;
	
	
	@Transient
	@PropertyDef(label = "当前岗位下的用户列表")
	private List<PocUser> users;
	

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public boolean isDisabled() {
		return disabled;
	}

	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}

	public List<PocUser> getUsers() {
		return users;
	}

	public void setUsers(List<PocUser> users) {
		this.users = users;
	}
	
}
